﻿using System;
using System.Collections.Generic; 
using System.Text;
using Runda.CMS.Common.Utility;
using System.Data.Common;
using System.Data;

namespace Runda.CMS.Dal
{
    public partial class WsmAccessoryReplacementDal:DalBase
    {
        public void Update(Enumerator.AccessoryReplacementCheckStatus status,Guid MaintainID)
        {
            string sql = "update Cms_Wsm_AccessoryReplacement set CheckStatus = @CheckStatus where MaintainID = @MaintainID";

            DbCommand dbcommand = CurrentDatabase.GetSqlStringCommand(sql);
            CurrentDatabase.AddInParameter(dbcommand, "@CheckStatus", DbType.Int32, (int)status);
            CurrentDatabase.AddInParameter(dbcommand, "@MaintainID", DbType.Guid, MaintainID);

            CurrentDatabase.ExecuteNonQuery(dbcommand);
        }
    }
}
